Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
soc:fredrikhultin [2006/07/12 00:06]
noname
soc:fredrikhultin [2006/07/12 00:24] (current)
noname
Line 83: Line 83:
   /* Name and describe the list set */   /* Name and describe the list set */
   cmdl_param_list_set_name(ipv4,​ "​ipv4"​);​   cmdl_param_list_set_name(ipv4,​ "​ipv4"​);​
-  ​cmdl_param_list_set_descr(ipv4, "Set the IP adress and netmask (IPv4)"​);​+  ​cmdl_param_list_set_desc(ipv4, "Set the IP adress and netmask (IPv4)"​);​
  
   /* Add the parameters with name, type and example value */   /* Add the parameters with name, type and example value */
Line 97: Line 97:
   /* Name and describe the list set */   /* Name and describe the list set */
   cmdl_param_list_set_name(ipv6,​ "​ipv6"​);​   cmdl_param_list_set_name(ipv6,​ "​ipv6"​);​
-  ​cmdl_param_list_set_descr(ipv6, "Set the IP adress (IPv6)"​);​+  ​cmdl_param_list_set_desc(ipv6, "Set the IP adress (IPv6)"​);​
  
   cmdl_param_list_set_add(ipv6,​ "​ip",​ CMDL_IPV6, "​2001:​0db8::​1428:​57ab"​);​   cmdl_param_list_set_add(ipv6,​ "​ip",​ CMDL_IPV6, "​2001:​0db8::​1428:​57ab"​);​
Line 109: Line 109:
   /* Name and describe the list set */   /* Name and describe the list set */
   cmdl_param_list_set_name(view,​ "​view"​);​   cmdl_param_list_set_name(view,​ "​view"​);​
-  ​cmdl_param_list_set_descr(view, "View the IP/​netmask"​);​+  ​cmdl_param_list_set_desc(view, "View the IP/​netmask"​);​
  
   /* (No parameters = view) */   /* (No parameters = view) */
Line 357: Line 357:
  
 ==== Concerns ==== ==== Concerns ====
-Perhaps this implementation would be a bit over the top. I got an email from Michael last week and he suggested, without reading this, that I should use ordinary C-style command structures (int argc, char** argv). That might not be as grandiose, and it would be harder to generate standardized automated help output, but it'd be much easier to implement. With some nice parse helper functions available to he command implementations,​ then perhaps it wouldn'​t be so bad. Hmm...+Perhaps this implementation would be a bit over the top. I got an email from Michael last week and he suggested, without reading this, that I should use ordinary C-style command structures (int argc, char** argv). That might not be as grandiose, and it would be harder to generate standardized automated help output, but it'd be much easier to implement. With some nice parse helper functions available to the command implementations,​ then perhaps it wouldn'​t be so bad. Hmm...
  
 ===== Status ===== ===== Status =====
  
 The command line is working and accepts input from the user, which it parses and then, at the moment, disregards. The command line is working and accepts input from the user, which it parses and then, at the moment, disregards.

Navigation

* [[:start|Home]] * [[:about|About our Project]] * [[:download|Download]] * [[:screenshots|Screenshots]] * Documentation * [[:howtos|HowTo Guides]] * [[:appnotes|Application Notes]] * [[:faq:|FAQs]] * [[:doc|General Doc]] * [[:talks|Videos, Talks, and Papers]] * [[:hardwareissues|Hardware Issues]] * [[:mailinglists|Mailing lists]] * [[http://support.etherboot.org/|Bugtracker]] * [[:contributing|Contributing]] * [[:editing_permission|Wiki Edit Permission]] * [[:wiki:syntax|Wiki Syntax]] * [[:contact|Contact]] * [[:relatedlinks|Related Links]] * [[:commerciallinks|Commercial Links]] * [[:acknowledgements|Acknowledgements]] * [[:logos|Logo Art]]

QR Code
QR Code soc:fredrikhultin (generated for current page)