Skip to content

Commit

Permalink
renamed expects_argument -> expects_argument?
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkdoor committed Apr 27, 2012
1 parent 496da26 commit bb8d566
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/fake/cli.fy
Expand Up @@ -15,7 +15,7 @@ class Fake CLI {
commands each: |c| {
flag = c option_flag
if: (argv includes?: flag) then: {
if: (c expects_argument) then: {
if: (c expects_argument?) then: {
c new run: (@args parse_option: flag)
} else: {
c new run
Expand Down
2 changes: 1 addition & 1 deletion lib/fake/cli/command.fy
@@ -1,7 +1,7 @@
class Fake CLI {
class Command {
class ClassMethods {
read_write_slots: ('command_name, 'option_flag, 'expects_argument)
read_write_slots: ('command_name, 'option_flag, 'expects_argument?)
}

def self included: command_class {
Expand Down
2 changes: 1 addition & 1 deletion lib/fake/cli/commands/show_help.fy
Expand Up @@ -4,7 +4,7 @@ class Fake CLI Commands {

command_name: "Show this help message"
option_flag: "--help"
expects_argument: false
expects_argument?: false

def run {
# find max command width
Expand Down
2 changes: 1 addition & 1 deletion lib/fake/cli/commands/show_tasks.fy
Expand Up @@ -4,7 +4,7 @@ class Fake CLI Commands {

command_name: "Show available tasks"
option_flag: "-T"
expects_argument: false
expects_argument?: false

def run {
# find max name width
Expand Down

0 comments on commit bb8d566

Please sign in to comment.