Fossil

Check-in [62a16882]
Login

Check-in [62a16882]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Removed the -- flag handling from expand_args_option(), instead letting it fall through to find_option(), to eliminate inconsistencies and corner cases uncovered in forum thread 4382bbc66757c39f.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 62a1688205348d0d41dd08a4665aa05861f70e33a2bb56bf02cc1668dbb8ab53
User & Date: stephan 2022-07-19 13:23:33
Context
2022-07-19
23:33
Add a quote from https://wholesomedonut.prose.sh/using-fossil-not-git to the "quotes.wiki" page of the documentation. ... (check-in: ff95be00 user: drh tags: trunk)
14:47
Add aliases as a new command type and display these next to the corresponding main command in /help. Make sure that for 'test-all-help' command and webpage each help string is output at most once. ... (check-in: 4b8efc05 user: danield tags: help-aliases-unique)
13:23
Removed the -- flag handling from expand_args_option(), instead letting it fall through to find_option(), to eliminate inconsistencies and corner cases uncovered in forum thread 4382bbc66757c39f. ... (check-in: 62a16882 user: stephan tags: trunk)
13:17
Update the built-in SQLite to the latest trunk version for testing. ... (check-in: e5be71d6 user: drh tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/main.c.

435
436
437
438
439
440
441




442
443
444
445
446
447
448
449
#endif
  g.nameOfExe = file_fullexename(g.argv[0]);
  for(i=1; i<g.argc-1; i++){
    z = g.argv[i];
    if( z[0]!='-' ) continue;
    z++;
    if( z[0]=='-' ) z++;




    if( z[0]==0 ) return;   /* Stop searching at "--" */
    if( fossil_strcmp(z, "args")==0 ) break;
  }
  if( i>=g.argc-1 ) return;

  zFileName = g.argv[i+1];
  if( strcmp(zFileName,"-")==0 ){
    inFile = stdin;







>
>
>
>
|







435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
#endif
  g.nameOfExe = file_fullexename(g.argv[0]);
  for(i=1; i<g.argc-1; i++){
    z = g.argv[i];
    if( z[0]!='-' ) continue;
    z++;
    if( z[0]=='-' ) z++;
    /* Maintenance reminder: we do not stop at a "--" flag here,
    ** instead delegating that to find_option(). Doing it here
    ** introduces some weird corner cases, as covered in forum thread
    ** 4382bbc66757c39f. e.g. (fossil -U -- --args ...) is handled
    ** differently when we stop at "--" here. */
    if( fossil_strcmp(z, "args")==0 ) break;
  }
  if( i>=g.argc-1 ) return;

  zFileName = g.argv[i+1];
  if( strcmp(zFileName,"-")==0 ){
    inFile = stdin;