Permalink
Browse files

[CommandLine] Add a few TODO notes for things I want to do next

  • Loading branch information...
1 parent 38bb2e5 commit b0fd6183ebadcfed6d9a274ae793dfe69c742640 @Whiteknight committed Aug 29, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −2 src/commandline/ArgumentDef.winxed
  2. +2 −0 src/commandline/Arguments.winxed
@@ -9,6 +9,8 @@ class Rosella.CommandLine.ArgumentDef
// depending on raw_defs format, and adding a factory to choose between
// them
+ // TODO: We need to support "foo|f" and "foo|f=X" (where --foo is an alias for -f)
+
var raw_defs; // The raw argument definitions from the user
var prepared_defs; // The prepared/processed argument definitions
@@ -25,7 +27,6 @@ class Rosella.CommandLine.ArgumentDef
// definitions and the description message associated with each
function get_description(var sb = new 'StringBuilder')
{
- // TODO: Prepend a usage string with program name
var raw_defs = self.raw_defs;
if (does(raw_defs, "hash"))
self.__get_description_hash(raw_defs, sb);
@@ -80,7 +81,6 @@ class Rosella.CommandLine.ArgumentDef
string desc = fixed_defs[arg];
push(sb, " ");
- // TODO: add dashes. -X and --xxx instead of X and xxx
push(sb, arg);
push(sb, repeat_string(" ", max - length(arg)));
push(sb, desc);
@@ -25,6 +25,8 @@ class Rosella.CommandLine.Arguments
return self.program;
}
+ // TODO: Handle the case where: -abc = -a -b -c, where -a, -b and -c are all flags
+
function parse(var args, var arg_defs_obj)
{
var arg_defs = arg_defs_obj.get_definitions();

0 comments on commit b0fd618

Please sign in to comment.